package com.qj.daibei.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qj.daibei.pojo.Loan;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * author wml
 * Created on 2021/10/6 15:33
 */
@Mapper
public interface LoanMapper extends BaseMapper<Loan> {

    // 根据用户id查询所有的未还的贷款记录
    List<Loan> findLoanByUserId(Integer userId);
}
